10. SNMP

Simple Network Management Protocol (SNMP)
Network devices use this protocol to communicate to each other and it can be used by administrators to manage the computers and network devices. It also use Application layer.
It uses UDP ports 161/162.

Working

SNMP involves one or more administrative computers called managers. They monitor and manage a group of computers.
Each of the managed computers has an agent installed that communicates with the manager.
The agent on the managed computers provides management data to the managing computer.

83a6efc8fb7d0efa3588cf7ae08240f7.png

Management Information Bases or MIB is a hierarchical database which stores data exposed by the agents. Agent collects the data locally and stores it, as defined in the MIB.
It is commonly shared between the Agent and the Manager.
It contains a vast array of information on every device on the network, including users, software installed, operating systems, open ports, etc.
The MIBs comprises of managed objects identified by the name Object Identifier (Object ID or OID).

c7f37498f820d38df34879f85ff7d9ff.png

In short:

SNMP Commands:
There are four types of SNMP commands used to control and monitor managed devices:

  1. The read command is used to monitor devices
  2. The write command is used to configure devices and change device settings
  3. The trap command is used to "trap" events from the device and report them back to the monitoring system
  4. Traversal operations are used to determine what variables a certain device supports

Versions

3ac7d8edc1c2e9816044c40f6ae714ec.png